﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace Jalal.Library.DataStructure 
{
    public abstract class CustomCollection<TGenericType>
    {
        protected List<TGenericType> _items;

        public CustomCollection()
        {
            this._items = new List<TGenericType>();
        }

        public int Count
        {
            get { return this._items.Count; }
        }

        public bool Contains(TGenericType item)
        {
            return this._items.Contains(item);
        }

        public void Sort(IComparer<TGenericType> comparer)
        {
            this._items.Sort(comparer);
        }
    }
}
